﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace WcfService
{
    // NOTE: If you change the interface name "IServiceProviders" here, you must also update the reference to "IServiceProviders" in App.config.
    [ServiceContract]
    public interface IServiceProviders
    {


        [OperationContract]
        List<Category> GetAllCategorys();
        [OperationContract]
        void AddNewCategory(Category category);
        [OperationContract]
        void DeleteCategory(int id);
        [OperationContract]
        void UpdateCategory(Category category);
        [OperationContract]
        void AddNewProduct(Product product);
        [OperationContract]
        void UpdateProduct(Product product);
        [OperationContract]
        void DeleteProduct(int ProductId);
        [OperationContract]
        List<Product> GetAllNewProduct();
        [OperationContract]
        List<Product> GetProductBelongtoCategory(int categoryId);
        [OperationContract]
        byte[] GetImages(int productId);
        [OperationContract]
        Product GetDetailProduct(int id);
    }
}
